package com.iris.live.services.data.repositories;

/**
 * Created by HangLiu on 2017/1/9.
 */

import com.iris.live.services.data.models.InsuranceCancelReasonModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;


public interface InsuranceCancelReasonRepository extends JpaRepository<InsuranceCancelReasonModel, Integer>, JpaSpecificationExecutor<InsuranceCancelReasonModel> {


    @Query("select  u from InsuranceCancelReasonModel u where u.cancelReason=?1")
    List<InsuranceCancelReasonModel> findInsuranceCancelReasonModel(String reason);
}